<?php
/*
+---------------------------------------------------------------------------
|   Arka-Tech Web Application v1.2.0
|   ========================================
|   by Christopher Hall
|   (c) 2009 Arka-Tech Productions
|   http://arka-tech.net
|   ========================================
|   Web: http://www.SITENAME.com
|   Time: Sat, 28 Feb 2009 9:05 AM
|   Release: RmVicnVhcnkgMjAwOSBMYXVuY2ggNA==
|   Email: ArkahnX@gmail.com
|   Licence Info: http://www.arka-tech.net/default.php?page=license
+---------------------------------------------------------------------------
*/

// Update the groups folders
$path = './' . REAL_EYE_ROOT . '/' . GROUPS_DIR . '/';
$folders = array();
if ($handler = @opendir($path)) {
	while (false !== ($folder = readdir($handler))) {
		if ($folder != '.' && $folder != '..' && !$folders[$folder] && is_dir($path . $folder . '/')) {
			$folders[$folder] = 1;
			rename($path . $folder . '/',$tmp_path . $folder . '/');
			mkdir($path . $folder . '/');
			rename($tmp_path . $folder . '/',$path . $folder . '/files/');
			mkdir($path . $folder . '/conf/');
		}
	}
	closedir($handler);
}
?>